import packageJson from '../package.json'
import type {SettingsConfig} from '~/basic'

export const settings: SettingsConfig = {
    title: packageJson.name,
    /**
     * @type {boolean} true | false
     * @description Whether show the logo in sidebar
     */
    sidebarLogo: true,
    /**
     * @type {boolean} true | false
     * @description Whether show the title in Navbar
     */
    showNavbarTitle: false,
    /**
     * @type {boolean} true | false
     * @description Whether show the drop-down
     */
    ShowDropDown: true,
    /**
     * @type {boolean} true | false
     * @description Whether show Hamburger
     */
    showHamburger: true,
    /**
     * @type {boolean} true | false
     * @description Whether show the settings right-panel
     */
    showLeftMenu: true,
    /**
     * @type {boolean} true | false
     * @description Whether show TagsView
     */
    showTagsView: true,
    /**
     * @description TagsView show number
     */
    tagsViewNum: 6,
    /**
     * @type {boolean} true | false
     * @description Whether show the top Navbar
     */
    showTopNavbar: true,
    /* page  animation related*/
    /**
     * @type {boolean} true | false
     * @description Whether need animation of main area
     */
    mainNeedAnimation: true,
    /**
     * @type {boolean} true | false
     * @description Whether need nprogress
     */
    isNeedNprogress: false,

    /*page login or other*/
    /**
     * @type {boolean} true | false
     * @description Whether need login
     */
    isNeedLogin: false,
    /**
     * @type {string} 'rbac'| 'roles' | 'code'
     */
    permissionMode: 'roles',
    /**
     * @type {boolean} true | false
     * @description Whether  open prod mock
     */
    openProdMock: true,
    /**
     * @type {string | array} 'dev' | ['prod','test','dev'] according to the .env file props of VITE_APP_ENV
     * @description Need show err logs component.
     * The default is only used in the production env
     * If you want to also use it in dev, you can pass ['dev', 'test']
     */
    errorLog: ['prod'],
    /*
     * table height(100vh-delWindowHeight)
     * */
    delWindowHeight: '210px',
    /*
     * setting dev token when  isNeedLogin is setting false
     * */
    tmpToken: 'tmp_token',

    /*
     * vite.config.js base config
     * */
    viteBasePath: './',

    /*
     * i18n setting default language
     * en/zh
     * */
    defaultLanguage: 'en',
    /*
     *  default theme
     * base-theme/lighting-theme/dark-theme
     * */
    defaultTheme: 'base-theme',
    /*
     * setting default defaultSize
     * large / default /small
     * */
    defaultSize: 'small',
    /*
     * vite.config.js base config
     * such as
     * */
    //平台id  1->vue3-admin-plus
    platformId: 1,
    //login info
    rememberMe: true,

    username: 'test',

    password: '666666'
}

export default settings
